package test;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

/**
 * Created by xusheng on 2019/4/24.
 */
@SpringBootApplication(scanBasePackages = {"com.jollychic.service.impl","com.jollychic.dao"})
public class ProviderRun {
    public static void main(String[] args) {
        System.out.println("......dubbo服务提供方启动......");

        new SpringApplicationBuilder(ProviderRun.class)
                .web(WebApplicationType.NONE) //非web
                .run(args);

        System.out.println("......dubbo服务提供方启动完成......");
    }
}
